 
import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";


//办公地点


//#region 获取办公地点
export const getOfficeLocationListApi = (params: FormData) => {
    return http.post(PORT1+`/personnel/office-location/list?get_auth=1&auth_name=officeLocation`, params, { cancel: false });
};
//编辑办公地点
export const saveOfficeLocationApi = (params: FormData) => {
    return http.post(PORT1+`/personnel/office-location/save`, params, { cancel: false });
};
//删除
export const delOfficeLocationApi = (params: FormData) => {
    return http.get(PORT1+`/personnel/office-location/delete`, params, { cancel: false });
};

//获取所有办公地点
export const getOfficeLocationAllApi = (params: FormData) => {
    return http.get(PORT1+`/personnel/office-location/get-all-location`, params, { cancel: false });
};
//合并办公地点
export const mergeOfficeApi = (params: FormData) => {
    return http.post(PORT1+`/personnel/office-location/merge`, params, { cancel: false });
};
//#endregion

  


  

